package com.rpcdemo.entity;

import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

@Document(indexName = "standard_product", type = "_doc", shards = 1)
public class DscStandardProduct {
    private String id;
    private String name;
    private Integer age;
    private Date birthday;
    private boolean sex;
    private String location;

    public DscStandardProduct() {
    }

    public DscStandardProduct(String id, String name, Integer age, Date birthday, boolean sex, String location) {
        this.id = id;
        this.name = name;
        this.age = age;
        this.birthday = birthday;
        this.sex = sex;
        this.location = location;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }
}
